//
//  UIImage+iOS7_Image.m
//  新浪微博
//
//  Created by qianfeng on 16/1/9.
//  Copyright (c) 2016年 高炜. All rights reserved.
//

#import "UIImage+iOS7_Image.h"

@implementation UIImage (iOS7_Image)
+(UIImage *)imageWithName:(NSString *)name
{
    UIImage *image =nil;
    if (iOS7) {
        NSString *newStr =[name stringByAppendingString:@"_os7"];
        image =[UIImage imageNamed:newStr];
    }
    if (image==nil) {
        image =[UIImage imageNamed:name];
    }
    return image;
}
+(UIImage *)reSizeWithName:(NSString *)name
{
    UIImage *image =[UIImage imageWithName:name];
   return [image stretchableImageWithLeftCapWidth:image.size.width*0.5 topCapHeight:image.size.height*0.5];
}
@end
